class Student{
    protected name:string = "lisi"
    sayName(){
        console.log(this.name);
    }
}
class MidStudent extends Student{
    getName(){
        console.log(this.name);
    }
}
var m:MidStudent  = new MidStudent();
m.getName();
